home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7319 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C constant expression declarations
  5. Date: 15 Feb 1996 20:51:22 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb15135122@qcd.lanl.gov>
  8. References: <31229735.41C67EA6@isi.com> <DMto56.Lo3@uns.bris.ac.uk>
  9.     <4fvm2hINNa61@keats.ugrad.cs.ubc.ca>
  10. NNTP-Posting-Host: qcd.lanl.gov
  11. Mime-Version: 1.0
  12. Content-Type: text
  13. In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 15 Feb 1996 08:13:05 -0800
  14.  
  15. In article <4fvm2hINNa61@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca
  16. (Kazimir Kylheku) writes: 
  17. <snip>
  18.    Are you sure that C has signed constants? That is, is -1 lexically recognized
  19.  
  20. I am. 1 is a signed integer constant, 1U is an unsigned integer
  21. constant :-)
  22.  
  23.    as a constant, or as a minus token followed by an integer quantity? It's
  24.  
  25. The latter, which is a constant :-). (i.e. unary minus followed by a
  26. constant expression is a constant expression.)
  27.  
  28.    probably done the latter way, which means that "-1" is a compound expression.
  29.  
  30. Cheers
  31. Tanmoy
  32. --
  33. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  34. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  35. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  36. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  37. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  38. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  39.